import { IsBoolean, IsNotEmpty, IsNumber, IsNumberString, IsString } from "class-validator"


export class addCompanyDto {

    @IsNotEmpty()
    @IsString()
    readonly companyName: string

    @IsNotEmpty()
    @IsNumber()
    readonly score: number

}



export class deleteCompanyDto {

    @IsNotEmpty()
    @IsString()
    readonly id: string

}


export class updateCompanyDto extends deleteCompanyDto {

    @IsNotEmpty()
    @IsBoolean()
    readonly status: boolean

}



export class getCompanyDto {

    @IsNotEmpty()
    @IsNumberString()
    readonly pageNo: number | string

    @IsNotEmpty()
    @IsNumberString()
    readonly pageSize: number | string

}


export class searchCompanyDto {

    @IsNotEmpty()
    @IsString()
    readonly name: string

}
